-- GENERATED SPELL FOR [Draconic Magelord] --


function spell0_6129(pUnit, Event) --@Frost Shock,n/a--
pUnit:FullCastSpellOnTarget(12548,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6129', 8345, 1)
end

function spell1_6129(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(9672,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6129', 7000, 1)
end

function Sorts_6129(pUnit, Event)
local choix_sorts_6129 = math.random(0, 1)
if choix_sorts_6129 == 0 then
pUnit:RegisterEvent('spell0_6129', 1, 1)
end
if choix_sorts_6129 == 1 then
pUnit:RegisterEvent('spell1_6129', 1, 1)
end
end

function mob6129_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6129', math.random(1500, 3000), 1)
end

function mob6129_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6129_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6129_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6129, 1, 'mob6129_Action')
RegisterUnitEvent(6129, 2, 'mob6129_Leave')
RegisterUnitEvent(6129, 3, 'mob6129_Kill')
RegisterUnitEvent(6129, 4, 'mob6129_Die')
